import { ref } from 'vue'
import { defineStore } from 'pinia'

export const useOptionStore = defineStore(
  'option',
  () => {
    const themeSwitch = ref(false) // dark主题开关
    const languageSwitch = ref(false)

    return {
      themeSwitch,
      languageSwitch
    }
  },
  {
    persist: {
      paths: ['themeSwitch']
    }
  }
)
